
<%@page import="workboard.Workboard"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="vo" class="workboard.WorkboardVo"></jsp:useBean>
	<jsp:setProperty property="*" name="vo" />

	<%
		Workboard work = new Workboard();
		work.setVo(vo);
		
	if (work.delete()) {
	%>
	<script>
		alert("정상적으로 삭제되었습니다.");
		location.href="Main.jsp?inc_content=../work/Worksview.jsp&part=<%=vo.getPart()%>";
	</script>

	<%
		} else {
	%>
	<script>
		alert("오류발생가 발생했습니다. 다시 시도해 주세요.");
		history.back();
	</script>
	<%
		}
	%>


</body>
</html>